#ifndef ZIGBUSORDERDIRECTION_H
#define ZIGBUSORDERDIRECTION_H

#include "ZigbusItem.h"
#define ORDER_DIRECTION_SIZE 1
#define DIRECTION_QUERY 0x00
#define DIRECTION_RESPONSE 0x01

class ZigbusOrderDirection : public ZigbusItem
{
public:
    ZigbusOrderDirection();
    ZigbusOrderDirection(int value);
    ZigbusOrderDirection(const QString& str);
    ZigbusOrderDirection(const ZigbusOrderDirection& other);
    virtual ~ZigbusOrderDirection() { }
    static ZigbusOrderDirection QUERY() { return ZigbusOrderDirection(DIRECTION_QUERY); }
    static ZigbusOrderDirection RESPONSE() { return ZigbusOrderDirection(DIRECTION_RESPONSE); }
    virtual QString type() const { return "order_direction"; }
    virtual QString text() const;

};

#endif // ZIGBUSORDERDIRECTION_H
